package com.spring.eurekapost;

import org.springframework.stereotype.Component;

import java.util.ArrayList;
import java.util.Collection;
import java.util.Collections;
import java.util.List;


@Component
public class EurekaClientServicFallBack implements EurekaClientService {

    @Override
    public List<User> getUserList() {
        List<User> errorList = new ArrayList<User>();
        User user = new User("请求错误", "ERROR", -1);
        errorList.add(user);
        return errorList;
    }
}
